/*
 * speaker_pwm.c
 *
 *  Created on: Feb 22, 2013
 *      Author: George
 */


#include "common.h"

void pwm_init()
{
	//signal is low then high 
	MCF_GPIO_PTAPAR |= (3<<6);
	//MCF_GPIO_DDRTA |= (1<<2);
	MCF_GPIO_SETTA |= (1<<3);
	
	MCF_PWM_PWMPOL |= (1<<7);
	MCF_PWM_PWMCLK |= (1<<7);
	
	
}



void matchFreq()
{
	
}

void setVolume(int volume)
{
	
}
/*
void pause()
{
	MCF_PWM_PWMCTL |= (1 << 3);
	//dtim0_delay(1000);
	MCF_PWM_PWMCTL &= ~(0) << 3;
}
*/
